#include "startMovieMessageHandler.h"
#include "startMovieMessage.h"
#include "startMovieResMessage.h"
#include "startMovieHandler.h"

void StartMovieMessageHandler::handle(MtpMessage* message, const IPaddress& attachment)
{
	StartMovieMessage* msg = (StartMovieMessage*)message;
	StartMovieHandler handle;
	int64_t id = handle(msg->getId(), msg->getDmId(), msg->getTest());
	StartMovieResMessage resMsg(id, msg);
	resMsg.send(attachment);
}

MtpMessage* StartMovieMessageHandler::decode(MtpProtocol* packet, const IPaddress& attachment)
{
	return new StartMovieMessage(packet);
}
